package com.hziee.inm.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hziee.common.utils.PageUtils;
import com.hziee.common.utils.Query;

import com.hziee.inm.product.dao.MerchantProductDao;
import com.hziee.inm.product.entity.MerchantProductEntity;
import com.hziee.inm.product.service.MerchantProductService;


@Service("merchantProductService")
public class MerchantProductServiceImpl extends ServiceImpl<MerchantProductDao, MerchantProductEntity> implements MerchantProductService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MerchantProductEntity> page = this.page(
                new Query<MerchantProductEntity>().getPage(params),
                new QueryWrapper<MerchantProductEntity>()
        );

        return new PageUtils(page);
    }

}